/**************************************************
 * Project Name         [JavaEE_XML]
 * File Name            [Student.java]
 * Creation Date        [08-13-2014]
 * 
 * Copyright© ge.y.yang@gmail.com All Rights Reserved
 * 
 * Work hard, play harder, think big and keep fit
 **************************************************/
package pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 * @author 不落的太阳(Sean Yang)
 * @version 1.0
 * @since JDK 6
 * 
 */
public class Student {

	private String name;
	private int age;
	private String gender;
	private String phoneNumber;
	private Date birthday;

	public Student() {
		super();
	}

	public Student(String name, int age, String gender, String phoneNumber,
			Date birthday) {
		super();
		this.name = name;
		this.age = age;
		this.gender = gender;
		this.phoneNumber = phoneNumber;
		this.birthday = birthday;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", gender=" + gender
				+ ", phoneNumber=" + phoneNumber + ", birthday="
				+ new SimpleDateFormat("yyyy-MM-dd").format(birthday) + "]";
	}

}
